﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace frm_simsodep
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }
        public int kiemtra = 0 ;
        private void Form1_Load(object sender, EventArgs e)
        {

        }

        private void button1_Click(object sender, EventArgs e)
        {
            if ((this.txtUsername.Text == "admin") && (this.txtPassword.Text == "admin" ) )
            {
                
                this.kiemtra = 1;
                this.Dispose();
                
            }
            else
            {
                MessageBox.Show("Đăng Nhập Sai Rồi ( user:admin pass:admin) ");
                this.txtPassword.Text = "";
                this.txtUsername.Text = "";
            }
        }

        private void button2_Click(object sender, EventArgs e)
        {
            this.Close();
        }
    }
}
